e395ce24afe21d66741862353d735209811f9439,src/com/redhat/ceylon/tools/copy/CeylonCopyTool.java,CeylonCopyTool,run,#,109
Before Change
&& src == null
&& docs == null
&& all == null;
if(BooleanUtil.isTrue(js) || (BooleanUtil.isTrue(all) && BooleanUtil.isNotFalse(js)) || defaults)
artifacts.add(ArtifactContext.JS);
if(BooleanUtil.isTrue(jvm) || (BooleanUtil.isTrue(all) && BooleanUtil.isNotFalse(js)) || defaults){
// put the CAR first since its presence will shortcut the other three
artifacts.add(ArtifactContext.CAR);
artifacts.add(ArtifactContext.JAR);
artifacts.add(ArtifactContext.MODULE_PROPERTIES);
artifacts.add(ArtifactContext.MODULE_XML);
}
if(BooleanUtil.isTrue(src) || (BooleanUtil.isTrue(all) && BooleanUtil.isNotFalse(js)))
artifacts.add(ArtifactContext.SRC);
if(BooleanUtil.isTrue(docs) || (BooleanUtil.isTrue(all) && BooleanUtil.isNotFalse(js))){
artifacts.add(ArtifactContext.DOCS_ZIPPED);
artifacts.add(ArtifactContext.DOCS);
}
After Change
&& src == null
&& docs == null
&& all == null;
if (BooleanUtil.isTrue(all)) {
artifacts.addAll(ArtifactContext.allSuffixes());
}
if (BooleanUtil.isTrue(js) || defaults) {
artifacts.add(ArtifactContext.JS);
artifacts.add(ArtifactContext.JS_MODEL);
artifacts.add(ArtifactContext.RESOURCES);
} else if (BooleanUtil.isFalse(js)) {
artifacts.remove(ArtifactContext.JS);
artifacts.remove(ArtifactContext.JS_MODEL);
artifacts.remove(ArtifactContext.RESOURCES);
}
if (BooleanUtil.isTrue(jvm) || defaults) {
// put the CAR first since its presence will shortcut the other three
artifacts.add(ArtifactContext.CAR);
artifacts.add(ArtifactContext.JAR);
artifacts.add(ArtifactContext.MODULE_PROPERTIES);
artifacts.add(ArtifactContext.MODULE_XML);
} else if (BooleanUtil.isFalse(jvm)) {
artifacts.remove(ArtifactContext.CAR);
artifacts.remove(ArtifactContext.JAR);
artifacts.remove(ArtifactContext.MODULE_PROPERTIES);
artifacts.remove(ArtifactContext.MODULE_XML);
}
if (BooleanUtil.isTrue(src)) {
artifacts.add(ArtifactContext.SRC);
} else if (BooleanUtil.isFalse(src)) {
artifacts.remove(ArtifactContext.SRC);
}
if (BooleanUtil.isTrue(docs)) {
artifacts.add(ArtifactContext.DOCS_ZIPPED);
artifacts.add(ArtifactContext.DOCS);
} else if (BooleanUtil.isFalse(docs)) {
artifacts.remove(ArtifactContext.DOCS_ZIPPED);
artifacts.remove(ArtifactContext.DOCS);
}
for (ModuleSpec module : modules) {
if (module != ModuleSpec.DEFAULT_MODULE && !module.isVersioned()) {